﻿#include "qtzip.h"
#include "JlCompress.h"

bool QtZip::compressDir(QString fileCompressed, QString dir, bool recursive)
{
    return JlCompress::compressDir(fileCompressed, dir, recursive);
}

bool QtZip::extractDir(QString fileCompressed, QString dir)
{
    QStringList str_list = JlCompress::extractDir(fileCompressed, dir);
    if(str_list.isEmpty())
        return false;
    return true;
}

bool QtZip::extractFiles(QString fileCompressed, QString dir)
{
    QStringList fileList = JlCompress::getFileList(fileCompressed);
    QStringList str_list = JlCompress::extractFiles(fileCompressed, fileList, dir);
    if(str_list.isEmpty())
        return false;
    return true;
}

QStringList QtZip::getFileList(QString fileCompressed)
{
    return JlCompress::getFileList(fileCompressed);
}
